import request from '@/utils/request'

// 查询膳食记录列表
export function listMealRecords(query) {
  return request({
    url: '/business/mealRecords/list',
    method: 'get',
    params: query
  })
}

// 查询膳食记录详细
export function getMealRecords(mealId) {
  return request({
    url: '/business/mealRecords/' + mealId,
    method: 'get'
  })
}

// 新增膳食记录
export function addMealRecords(data) {
  return request({
    url: '/business/mealRecords',
    method: 'post',
    data: data
  })
}

// 修改膳食记录
export function updateMealRecords(data) {
  return request({
    url: '/business/mealRecords',
    method: 'put',
    data: data
  })
}

// 删除膳食记录
export function delMealRecords(mealId) {
  return request({
    url: '/business/mealRecords/' + mealId,
    method: 'delete'
  })
}
